package com.tyk.bookstore.back.task.model.result;

import com.tyk.bookstore.back.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description 定时任务异常枚举
 */
public enum TaskResultEnum implements ResultEnum {

    TASK_NOT_FOUND(3_03_04_01, "定时任务不存在"),
    TASK_ALREADY_EXISTS(3_03_04_02, "定时任务已存在"),
    TASK_NOT_SUPPORT(3_03_04_03, "暂不支持该任务");

    private final Integer code;
    private final String msg;

    TaskResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
